
#ifndef CONSOLE_H
#define CONSOLE_H

typedef struct cons{
  u16int *buffer;
  u32int console_nr;
  u8int X;
  u8int Y;
  u8int attribute;
  u8int char_color;
  u8int font_color;
  task_t *task;
  boolean readkey;
  struct cons *next, *priew;
} cons_t;

typedef struct{
  cons_t *head;
  cons_t *now;
  cons_t *tail;
} cons_list_t;

boolean init_cmd();
cons_t *cmd_find(u32int );
cons_t *cmd_create_new();
u32int cmd_create();
void cmd_delete(u32int );

void clear(u32int );
void put(char , u32int );
void print(char *, u32int );
void print_dec(u32int , u32int );
void print_hex(u32int , u32int );

#endif /* CONSOLE_H */
